/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;


import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdModelManagementTask;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 模型组建任务业务对象 isfd_model_management_task
 *
 * @author Lion Li
 * @date 2024-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdModelManagementTask.class, reverseConvertGenerate = false)
public class IsfdModelManagementTaskBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 操作类型，add-新增，update-修改
     */
    @NotBlank(message = "操作类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String actionType;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String taskName;

    /**
     * 模型名称
     */
    @NotBlank(message = "模型名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String moldName;

    /**
     * 机型编号
     */
    @NotBlank(message = "机型编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String modelNumber;

    /**
     * 机型名称
     */
    @NotBlank(message = "机型名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String modelName;

    /**
     * 零件id集合
     */
    @NotBlank(message = "零件id集合不能为空", groups = {AddGroup.class, EditGroup.class})
    private List<Long> partIds;


    /**
     * 索引文件地址
     */
    private String indexFilePath;

    /**
     * 批次编号
     */
    @NotBlank(message = "批次编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String batchNumber;

    /**
     * 生成的zip包地址
     */
    private String url;
}
